<template>
	<view class="box">
		<!-- url="/pages/healthStatus/lifeStyle/index" -->
		<navigator url="/pages/healthStatus/lifeStyle/index" class="navigator">
			<image src="@/static/img/healthStatus/healthImg1@2x.png" mode=""></image>
		</navigator>
		<!-- url="/pages/healthStatus/examined/index" -->
		<navigator url="/pages/healthStatus/examined/index" class="navigator">
			<image src="@/static/img/healthStatus/healthImg2@2x.png" mode=""></image>
		</navigator>
		<navigator url="/pages/healthStatus/mental/createMental" class="navigator">
			<image src="@/static/img/healthStatus/healthImg3@2x.png" mode=""></image>
		</navigator>
		<navigator url="/pages/healthStatus/accomplishment/index" class="navigator">
			<image src="@/static/img/healthStatus/healthImg4@2x.png" mode=""></image>
		</navigator>
		<navigator url="/pages/healthStatus/anxious/screening" class="navigator">
			<image src="@/static/img/healthStatus/healthImg5@2x.png" mode=""></image>
		</navigator>
		<navigator url="/pages/healthStatus/depressed/screening" class="navigator">
			<image src="@/static/img/healthStatus/healthImg6@2x.png" mode=""></image>
		</navigator>
		<navigator url="/pages/healthStatus/chineseMedicine/index" class="navigator">
			<image src="@/static/img/healthStatus/healthImg7@2x.png" mode=""></image>
		</navigator>
	</view>
</template>

<script>
	export default{
		data() {
			return {
				userId:''
			}
		},
		// onLoad() {		
		// 	if(this.is_weixin()){
		// 		getApp().navTitle()
		// 	}
			
		// },
		created() {
			this.userId = JSON.parse(localStorage.userInfo).userId
		},
		methods:{
			// navigator(e) {
			// 	const _this = this;
			// 	console.log(e)
			// 	_this.$api.mentalHealthAssessmentFindBy(_this.userId).then((res) => {
			// 		if(res.data.returnCode == 505) {
			// 			uni.showToast({
			// 				title: res.data.message,
			// 				icon: 'none'
			// 			})
			// 		}else {
			// 			if(e == 1) {
			// 				uni.navigateTo({
			// 					url:'/pages/healthStatus/lifeStyle/index'
			// 				})
			// 			}else if (e == 2) {
			// 				uni.navigateTo({
			// 					url:'/pages/healthStatus/examined/index'
			// 				})
			// 			}
			// 		}
			// 	})
			// }
			// is_weixin(){
			// 	let ua = navigator.userAgent.toLowerCase();
			// 	return ua.indexOf('micromessenger') != -1;
			// },
			
		}
	}
</script>

<style lang="scss" scoped>
	.box {
		min-height: calc(100vh - 44px);
		width: 750upx;
		padding: 0 24upx;
		box-sizing: border-box;
		margin-top: 50upx;
		.navigator {
			width: 100%;
			height: 134upx;
			margin-bottom: 30upx;
			image {
				width: 100%;
				height: 100%;
			}
		}
	}
</style>
